package com.example.service;

import com.example.entity.Account;
import com.example.entity.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TeacherService {
    void add(Teacher teacher);

    PageInfo<Teacher> selectPage(Teacher teacher, Integer pageNum, Integer pageSize);

    void update(Teacher teacher);

    void deleteById(Integer id);

    Teacher login(Account account);

    void updatePassword(Account account);

    List<Teacher> selectAll();
}
